package com.itheima.day05_method;

public class Demo1_sum {
    public static void main(String[] args) {
        int a = 10;
        int b = 20;
        int c = a + b;
        System.out.println("c = " + c);
        int c2 = sum(a , b);
        System.out.println("c2 = " + c2);

        int a1 = 20;
        int b1 = 30;
        int c1 = a1 + b1;
        System.out.println("c1 = " + c1);
        int c3 = sum(a1 , b1);
        System.out.println("c3 = " + c3);


    }

    public static int sum(int a,int b){
        int c = a + b;
        return c;
    }
}
